package site.wtfu.framework.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import site.wtfu.framework.beans.User;

import java.util.List;

/**
 * Copyright 2021 wtfu.site Inc. All Rights Reserved.
 *
 * @author: 12302
 * @date: 2021-05-02
 */
@FeignClient(name = "invoicecore")
public interface IUserService {

    @GetMapping("/getUserInfo/{psnId}")
    List<User> getUsers(@PathVariable(name = "psnId")Integer director);

    @RequestMapping(value = "/API/invoicePre/getPreCompByUserId", method = RequestMethod.POST,
            consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    String getUserId(@RequestParam(value = "userId") Integer userId);
}
